<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>欢迎页</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f7fc;
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
        }

        .container {
            width: 100%;
            max-width: 600px;
            padding: 30px;
            background-color: #fff;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        h2 {
            text-align: center;
            font-size: 32px;
            color: #333;
            margin-bottom: 20px;
        }

        .alert-success {
            background-color: #d4edda;
            border: 1px solid #c3e6cb;
            color: #155724;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 20px;
        }

        .alert-success h4 {
            margin-top: 0;
            font-size: 20px;
            font-weight: bold;
        }

        .alert-success p {
            margin-bottom: 0;
            font-size: 16px;
        }

        .btn-logout {
            display: inline-block;
            background-color: #dc3545;
            color: white;
            padding: 10px 20px;
            font-size: 18px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            text-align: center;
            text-decoration: none;
            width: 100%;
            transition: background-color 0.3s;
        }

        .btn-logout:hover {
            background-color: #c82333;
        }

        @media (max-width: 768px) {
            .container {
                padding: 20px;
            }

            h2 {
                font-size: 28px;
            }

            .alert-success h4 {
                font-size: 18px;
            }

            .btn-logout {
                font-size: 16px;
            }
        }
    </style>
</head>

<body>

    <div class="container">
        <h2>欢迎，{{ session['username'] }}！</h2>

        <div class="alert-success">
            <h4>您已成功登录!</h4>
            <p>现在您可以访问用户页面和更多功能。</p>
        </div>

        <!-- 登出按钮 -->
        <a href="{{ url_for('main.member_logout') }}" class="btn-logout">登出</a>
    </div>

</body>

</html>
